<%@page import="model.fabrica.Fabrica"%>
<%@page import="model.classesDAO.FabricanteDAO"%>
<%@page import="model.classes.Fabricante"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Alterar Fabricante</title>
</head>
<body>
<form action="ServletCadastroFabricante" method="post">
		<%
			String fakeid = request.getParameter("id");
			int id = Integer.parseInt(fakeid);
			FabricanteDAO fabricanteDAO = Fabrica.getFabricanteDAO();
			Fabricante fabricante = new Fabricante();
			fabricante = fabricanteDAO.pesquisarID(id);
		%>
		<table>
		<tr><td>Nome:</td><td><input type="text" name="nome" value="<%= fabricante.getNome() %>"></td></tr>
		<tr><td>Fundador:</td><td><input type="hidden" name="fundador" value="<%= fabricante.getFundador() %>"></td></tr>
		<tr><td></td><td><input type="submit" value="Alterar"></td></tr>
		</table>
</form>
</body>
</html>